package com.vpx.server;

import cn.hutool.core.util.ReUtil;
import cn.hutool.core.util.StrUtil;

public class Test {
    public static void main(String[] s) {
//        String regex  ="#.+#.+#.+#.+#";
//        String content = "#电压值#1734442529044058118#JointResult#JointResult#1#";
//        String[] contents =  content.split("#");
        String content = "#电压值#173#44058118#JointResult#JointResult#1#";

        System.out.println(StrUtil.ordinalIndexOf(content, "#", 2));
        System.out.println(StrUtil.ordinalIndexOf(content, "#", 3));
        System.out.println(content.substring(StrUtil.ordinalIndexOf(content, "#", 2) + 1,  StrUtil.ordinalIndexOf(content, "#", 3)));
    }
}
